<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<h1 class='hcls'>aaaaaaaaaaaaaaaaaaaaaaaaaa</h1>
	<h1 class='hcls'>bbbbbbbbbbbbbbbbb</h1>
	<h1 class='hcls'>bbbbbbbbbbbbbbbbbbbbbbbb</h1>
	<h1></h1>
</body>
<script type="text/javascript">
	hidobjs=document.getElementsByClassName('hcls');
	for(i=0;i<hidobjs.length;i++){
		hidobjs[i].style.background='red';
	}



</script>
</html>